* configure.ac: Port to strict POSIX shells on non-MinGW.
authorPaul Eggert <eggert@cs.ucla.edu>
Thu, 2 Oct 2014 22:29:39 +0000 (15:29 -0700)
committerPaul Eggert <eggert@cs.ucla.edu>
Thu, 2 Oct 2014 22:29:39 +0000 (15:29 -0700)
ChangeLog
configure.ac

index 1c975f36646e9bd5a699bb6ce33a56b70ff15cba..d2be6e6b420e9aed4be301ba5108097b297db82e 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+2014-10-02  Paul Eggert  <eggert@cs.ucla.edu>
+
+       * configure.ac: Port to strict POSIX shells on non-MinGW (Bug#18612).
+
 2014-09-21  Jan Djärv  <jan.h.d@swipnet.se>
 
        * configure.ac: Increase headerpad_extra to 1000, update the comment
index dd70700bacbcf0442725e15a269bf53ff4fd0b8c..20acc46a1b36bc07aa1c7f3b520e8fcc327417dc 100644 (file)
@@ -35,7 +35,8 @@ then
       # "/c/foo/bar", to simplify later conversions to native Windows
       # format ("c:/foo/bar")
       srcdir=`cd "${srcdir}" && pwd -W`
-      srcdir="/${srcdir:0:1}${srcdir:2}"
+      # 'eval' pacifies strict POSIX non-MinGW shells (Bug#18612).
+      eval 'srcdir="/${srcdir:0:1}${srcdir:2}"'
       ;;
   esac
 fi